css: Rewrite selectors
authorBenjamin Otte <otte@redhat.com>
Thu, 16 Feb 2012 14:16:18 +0000 (15:16 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 2 Mar 2012 01:17:09 +0000 (02:17 +0100)
commit35a0fb09acb1cbf1a1e99f33d73597c7d46173ea
tree0599a54c83358e308ce3b80cc1122a171a911e2f
parenteb013767bbfd2943ad886d1d61763d8f7faba231
css: Rewrite selectors

Previously we kept a Selector object for every "simple selector" (term
from CSS spec). Now we keep one for every match operation. So given the
selector
  ".a b:focus"
we will have 4 elements:
  - pseudoclass ":focus"
  - element "b"
  - match any desendant (the space)
  - class ".a"
Each of those is represented by a "selector class" which is basically
the collection of vfuncs for this selector.
gtk/gtkcssselector.c
tests/css/parser/selector.ref.css